package hyy_2022;

/**
 * 汉明距离
 */
public class _1119_461_HammingDistance {

    public int hammingDistance(int x, int y) {
        return Integer.bitCount(x ^ y);
    }

}
